package com.axungu.core.vo;

import java.io.Serializable;

/**
 * @author jtoms
 */
public class PageInfoVO implements Serializable {

    private static final long serialVersionUID = -4451197415189394277L;

    private int page;

    private int limit;

    private String orders;

    public String getOrders() {
        return orders;
    }

    public void setOrders(String orders) {
        this.orders = orders;
    }

    public int getPage() {
        return page = page < 1 ? 1 : page;
    }

    public void setPage(Integer page) {
        this.page = page == null || page < 1 ? 1 : page;
    }

    public int getLimit() {
        return limit = limit <= 0 ? 10 : limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit == null || limit <= 0 ? 10 : limit;
    }
}
